package chapter_22_state.classic.state;

import chapter_22_state.classic.context.Context;

/**
 * Created by yao on 2016/10/11.
 * 抽象状态角色；
 */
public abstract class State {

    //定义一个环境类，供子类调用
    protected Context context;

    public void setContext(Context context) {
        this.context = context;
    }

    //方法1
    public abstract void handle1(String param);

    //方法2
    public abstract void handle2(String param);

}
